import request from '@/config/request'
import type { RegisterForm, LoginForm, PasswordForm } from '@/config/form'

export default {
  register: (form: RegisterForm) => request.post('/auth/register', form),
  login: (form: LoginForm) => request.post('/auth/login', form),
  captcha: () => request.post('/auth/captcha'),
  password: (form: PasswordForm) => request.post('/auth/password', form)
}
